<%= error_messages_for :category %>
<% form_for :category, :url => {:controller => 'admin/categories', :action => 'create'} do |f| -%>
<fieldset>
    <legend>Create new category</legend>

   <%= render :partial => 'form', :object => f %>
   
    <p><%= submit_tag 'Create' %></p>
</fieldset>
<% end -%>